package com.atom.module.image.filter;

public class SmashColorFilter implements IImageFilter {
	//@Override
    public Image process(Image imageIn) {
    	ParamEdgeDetectFilter pde = new ParamEdgeDetectFilter();
    	pde.K00 = 1;
    	pde.K01 = 2;
    	pde.K02 = 1;
    	pde.Threshold = 0.25f;
        pde.DoGrayConversion = false;
        pde.DoInversion = false;
        ImageBlender ib = new ImageBlender();
        ib.Mode = (int) ImageBlender.BlendMode.LinearLight;
        ib.Mixture = 2.5f;
        return ib.Blend(imageIn.clone(), pde.process(imageIn));
    }
}
